home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / CIncludes / ROMDefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-29  |  3.6 KB  |  103 lines  |  [TEXT/MPS ]

  1.  
  2. /************************************************************
  3.  
  4. Created: Sunday, September 15, 1991 at 8:16 PM
  5.  ROMDefs.h
  6.  C Interface to the Macintosh Libraries
  7.  
  8.  
  9.   Copyright Apple Computer, Inc. 1986-1991
  10.   All rights reserved
  11.  
  12. ************************************************************/
  13.  
  14.  
  15. #ifndef __ROMDEFS__
  16. #define __ROMDEFS__
  17.  
  18.  
  19. enum {
  20.  
  21.  appleFormat = 1,                        /*Format of Declaration Data (IEEE will assign real value)*/
  22.  romRevision = 1,                        /*Revision of Declaration Data Format*/
  23.  testPattern = 1519594439,                /*FHeader long word test pattern*/
  24.  
  25.  sCodeRev = 2,                            /*Revision of code (For sExec)*/
  26.  sCPU68000 = 1,                            /*CPU type = 68000*/
  27.  sCPU68020 = 2,                            /*CPU type = 68020*/
  28.  sCPU68030 = 3,                            /*CPU type = 68030*/
  29.  sCPU68040 = 4,                            /*CPU type = 68040*/
  30.  sMacOS68000 = 1,                        /*Mac OS, CPU type = 68000*/
  31.  sMacOS68020 = 2,                        /*Mac OS, CPU type = 68020*/
  32.  sMacOS68030 = 3,                        /*Mac OS, CPU type = 68030*/
  33.  sMacOS68040 = 4,                        /*Mac OS, CPU type = 68040*/
  34.  
  35.  board = 0,                                /*Board sResource - Required on all boards*/
  36.  displayVideoAppleTFB = 16843009,        /*Video with Apple parameters for TFB card.*/
  37.  displayVideoAppleGM = 16843010,        /*Video with Apple parameters for GM card.*/
  38.  networkEtherNetApple3Com = 33620225,    /*Ethernet with apple parameters for 3-Comm card.*/
  39.  testSimpleAppleAny = -2147417856,        /*A simple test sResource.*/
  40.  endOfList = 255,                        /*End of list*/
  41.  defaultTO = 100,                        /*100 retries.*/
  42.  
  43.  sRsrcType = 1                            /*Type of sResource*/
  44. };
  45. enum {
  46.  sRsrcName = 2,                            /*Name of sResource*/
  47.  sRsrcIcon = 3,                            /*Icon*/
  48.  sRsrcDrvrDir = 4,                        /*Driver directory*/
  49.  sRsrcLoadDir = 5,                        /*Load directory*/
  50.  sRsrcBootRec = 6,                        /*sBoot record*/
  51.  sRsrcFlags = 7,                        /*sResource Flags*/
  52.  sRsrcHWDevId = 8,                        /*Hardware Device Id*/
  53.  minorBaseOS = 10,                        /*Offset to base of sResource in minor space.*/
  54.  minorLength = 11,                        /*Length of sResource’s address space in standard slot space.*/
  55.  majorBaseOS = 12,                        /*Offset to base of sResource in Major space.*/
  56.  majorLength = 13,                        /*Length of sResource in super slot space.*/
  57.  sRsrccicn = 15,                        /*Color icon*/
  58.  sRsrcicl8 = 16,                        /*8-bit (indexed) icon*/
  59.  sRsrcicl4 = 17,                        /*4-bit (indexed) icon*/
  60.  sGammaDir = 64,                        /*sGamma directory*/
  61.  sDRVRDir = 16,                            /*sDriver directory*/
  62.  
  63.  drSwApple = 1,                            /*To ask for or define an Apple-compatible SW device.*/
  64.  drHwTFB = 1,                            /*HW ID for the TFB (original Mac II) video card.*/
  65.  drHw3Com = 1,                            /*HW ID for the Apple EtherTalk card.*/
  66.  drHwBSC = 3
  67. };
  68. enum {
  69.  catBoard = 1,                            /*Category for board types.*/
  70.  catTest = 2,                            /*Category for test types -- not used much.*/
  71.  catDisplay = 3,                        /*Category for display (video) cards.*/
  72.  catNetwork = 4,                        /*Category for Networking cards.*/
  73.  
  74.  boardId = 32,                            /*Board Id*/
  75.  pRAMInitData = 33,                        /*sPRAM init data*/
  76.  primaryInit = 34,                        /*Primary init record*/
  77.  timeOutConst = 35,                        /*Time out constant*/
  78.  vendorInfo = 36,                        /*Vendor information List. See Vendor List, below*/
  79.  boardFlags = 37,                        /*Board Flags*/
  80.  secondaryInit = 38,                    /*Secondary init record/code*/
  81.  sRsrcVidNames = 65,                    /*Video mode name directory*/
  82.  
  83.  vendorId = 1,                            /*Vendor Id*/
  84.  serialNum = 2,                            /*Serial number*/
  85.  revLevel = 3,                            /*Revision level*/
  86.  partNum = 4,                            /*Part number*/
  87.  date = 5,                                /*Last revision date of the card*/
  88.  
  89.  typeBoard = 0,                            /*Type for board types.*/
  90.  typeApple = 1,
  91.  typeVideo = 1                            /*Type for video types.*/
  92. };
  93. enum {
  94.  typeEtherNet = 1,                        /*Type for ethernet types.*/
  95.  testByte = 32,                            /*Test byte.*/
  96.  testWord = 33,                            /*0021*/
  97.  testLong = 34,                            /*Test Long.*/
  98.  testString = 35                        /*Test String.*/
  99. };
  100.  
  101.  
  102. #endif
  103.